#ifndef CUSTOMERVIEWADDDIALOG_H
#define CUSTOMERVIEWADDDIALOG_H

#include <QtGui>
#include "core/customermodel.h"

class CustomerViewAddDialog : public QDialog
{
    Q_OBJECT
public:
    explicit CustomerViewAddDialog(QWidget *parent);
    virtual CustomerModel *getCustomer();

signals:

public slots:
    void onSaveButtonClicked();

protected:
    CustomerModel *customer;

    void initUiComponents();

    QVBoxLayout *mainLayout;
    QGridLayout *fieldsLayout;

    QLabel *headerLabel;
    QLabel *instructionLabel;

    QLabel *nameLabel;
    QLineEdit *nameEdit;

    QLabel *addressLabel;
    QLineEdit *addressEdit;

    QLabel *contactLabel;
    QLineEdit *contactEdit;

    QLabel *noteLabel;
    QTextEdit *noteEdit;

    QDialogButtonBox *buttonBox;
};

#endif // CUSTOMERVIEWADDDIALOG_H
